package com.openbravo.data.loader;

import com.openbravo.format.Formats;

public class RenderStringBasic
  implements IRenderString
{
  private Formats[] m_aFormats;
  private int[] m_aiIndex;

  public RenderStringBasic(Formats[] paramArrayOfFormats, int[] paramArrayOfInt)
  {
    this.m_aFormats = paramArrayOfFormats;
    this.m_aiIndex = paramArrayOfInt;
  }

  public String getRenderString(Object paramObject)
  {
    if (paramObject == null)
      return null;
    Object[] arrayOfObject = (Object[])(Object[])paramObject;
    StringBuffer localStringBuffer = new StringBuffer();
    for (int i = 0; i < this.m_aiIndex.length; i++)
    {
      if (i > 0)
        localStringBuffer.append(" - ");
      localStringBuffer.append(this.m_aFormats[this.m_aiIndex[i]].formatValue(arrayOfObject[this.m_aiIndex[i]]));
    }
    return localStringBuffer.toString();
  }
}

/* Location:           D:\PowerFulPOS-2.30.2\openbravopos.jar
 * Qualified Name:     com.openbravo.data.loader.RenderStringBasic
 * JD-Core Version:    0.6.0
 */